import React, { Component } from "react";
import { Switch, Route, Redirect } from "react-router-dom";
import CommodityHome from "./home";
import CommodityEditor from "./editor";

export default class Commodity extends Component {
  render() {
    return (
      <Switch>
        <Route path="/commodity" component={CommodityHome} exact />
        <Route path="/commodity/editor" component={CommodityEditor} />
        <Redirect to="/commodity" />
      </Switch>
    );
  }
}
